# gunicorn_config.py
import os

# import multiprocessing

# bind = '0.0.0.0:8888'
bind = '127.0.0.1:8001'
backlog = 2048
timeout = 300
worker_class = 'gevent'
daemon = False
#
# workers = 4
workers = os.cpu_count()

# workers = 2
# threads = 2
# loglevel = 'info'
# access_log_format = '%(t)s %(p)s %(h)s "%(r)s" %(s)s %(L)s %(b)s %(f)s" "%(a)s"'
# accesslog = os.path.join(os.path.dirname(__file__), 'logs/gunicorn_access.log')  # 访问日志文件
# errorlog = os.path.join(os.path.dirname(__file__), 'logs/gunicorn_error.log')
# gunicorn backend.application.wsgi:application --bind 0.0.0.0:8000
